﻿using Nop.Plugin.Resources.Client.AutoMapper;
using Nop.Plugin.Resources.Client.Domain;
using Nop.Plugin.Resources.Client.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace Nop.Plugin.Resources.Client.MappingExtensions
{
    public static class ConfigurationMappings
    {
        public static ConfigurationModel ToModel(this ResSettings settings)
        {
            return settings.MapTo<ResSettings, ConfigurationModel>();
        }

        public static ResSettings ToEntity(this ConfigurationModel settingsModel)
        {
            return settingsModel.MapTo<ConfigurationModel, ResSettings>();
        }
    }
}
